home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1513 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.0 KB  |  86 lines

  1. Path: noc.tor.hookup.net!the-fix.sos.on.ca
  2. From: <verneb@the-fix.sos.on.ca>
  3. Date: Sun,14 Jan 96 14:45:42 -0500
  4. Newsgroups: comp.lang.c
  5. Subject: Re: Free Pacific C problem
  6. Message-ID: <tcpnntpd.16.1.14.14.45.42.2781597121.340150@the-fix.sos.on.ca>
  7. References: <4d9msn$k9p@fohnix.metronet.com>
  8. Organization: the FIX - Kitchener, Ontario CANADA
  9. NNTP-Posting-Host: the-fix.sos.on.ca
  10. X-MajorTCP-Version: MajorTCP/IP [1.80-0]
  11.  
  12. To: INT:milam@fohnix.metronet
  13.  
  14.     Just had to try this so loaded TC3 and wrote in the code and 
  15. voila it worked.  Did the same with Pacific and groan it didn't!  You 
  16. know Clyde has does such a nice job on this I hope he does improve it 
  17. or at least in his commercial version has a 'real ansi model'.
  18.  
  19. I>Clyde Smith-Stubbs (clyde@hitech.com.au) wrote:
  20. I>: On Sat,6 Jan 96 16:29:54 -0500, <verneb@the-fix.sos.on.ca> wrote:
  21. I>
  22. I>: >    I have it loaded on my machine too but use TC3 because Pacific is 
  23. I>: >not a true Ansi C program.  Just as an example the comment lines // 
  24. I>
  25. I>: This is an extension, non-ANSI, yes, but I don't believe there are any
  26. I>: compilers out there that in their default mode accept only strictly
  27. I>: conforming ANSI C programs. You'd be surprised how many people believe
  28. I>: that the // comment feature is *already* part of C. It's certain to be
  29. I>: added in the next release of the standard - just like function
  30. I>: prototypes were borrowed from C++.
  31. I>
  32. I>// may be an extension, but what about the things that are missing which
  33. I>are 
  34. I>necessary for ANSI compliance?  For example, try this program with Pacific
  35. I>C:
  36. I>
  37. I>..h>
  38. I>#include <stdlib.h>
  39. I>
  40. I>int main( void ) {
  41. I>
  42. I>printf( "Hello World!\n" );
  43. I>return EXIT_SUCCESS;
  44. I>}
  45. I>
  46. I>Guess what?  It will not even compile.  Seems EXIT_SUCCESS is not defined
  47. I>in
  48. I>stdlib.h as it should be.  Okay, so I fix this and spend the next hour and
  49. I>a 
  50. I>half getting it to compile a simple hex dump program.  There are lots of
  51. I>ANSI
  52. I>functions missing from the library.  
  53. I>
  54. I>: >  This is a Beta model you 
  55. I>: >know or we'd have had to pay for it.
  56. I>
  57. I>: No it's not - it's a production quality compiler, with a 14 year
  58. I>: pedigree. It's being given away simply because it's pointless trying
  59. I>: to *sell* MS-DOS compilers now. The parser, code generator etc. are
  60. I>: basically the same as our 8086 cross compiler which sells for around
  61. I>: $1000. 
  62. I>
  63. I>After 14 years seems like it should really be nearer to ANSI than it is.
  64. I>Especially since you tout it as an ANSI compiler! 
  65. I>
  66. I>: ----
  67. I>:  Clyde Smith-Stubbs       | HI-TECH Software,       | Voice: +61 7 3300
  68. I>5011
  69. I>:  clyde@hitech.com.au      | P.O. Box 103, Alderley, | Fax:   +61 7 3300
  70. I>5246
  71. I>: http://www.hitech.com.au  | QLD, 4051, AUSTRALIA.   | BBS:   +61 7 3300
  72. I>5235
  73. I>:
  74. I>----------------------------------------------------------------------------
  75. I>: FREE! Download our shareware (FREE for noncommercial use) MS-DOS C
  76. I>Compiler!
  77. I>:              Point your Web browser at http://www.hitech.com.au/
  78. I>
  79.  
  80. Verne H. Bohlender
  81. Box 416, Chesley, Ontario.Ca. N0G 1L0
  82. verneb@The-Fix.sos.on.ca
  83. ___
  84. * UniQWK #2158*
  85.  
  86.